home *** CD-ROM | disk | FTP | other *** search
/ Enciclopedia Del Perro / Enciclopedia Del Perro.iso / info31 / hangup.sc_ / hangup.sc
Text File  |  1993-01-11  |  876b  |  44 lines

  1. ;        HANGUP.SCR
  2. ;
  3. ; Use this template with the COMSCRPT command and Hayes compatible modems.  
  4. ; For other modems, consult your modem documentation.  If you change
  5. ; a modem command prefix, be sure to use uppercase characters. 
  6. ;
  7. ; Switch the packet driver from character mode to packet mode
  8. ;
  9. changemode packet
  10. ;
  11. ; Send a request to close the lcp layer.
  12. ;
  13. signal lcp close
  14. ;
  15. ; Pause to confirm that the lcp layer is closed.
  16. ;
  17. poll lcp close
  18. ;
  19. ; Switch the packet driver from packet mode to character mode
  20. ;
  21. changemode character
  22. ;
  23. ; Pause for 2 seconds.
  24. ;
  25. pause 2
  26. ;
  27. ; Send an attention sequence to the modem so that it recognizes the
  28. ; character sequences that follow as modem commands.
  29. ;
  30. send +++
  31. ;
  32. ; Pause for 2 seconds.
  33. ;
  34. pause 2
  35. ;
  36. ; Send a hang-up command that ends the connection.
  37. ;
  38. send ATH0\r
  39. ;
  40. ; Pause for 1 second.
  41. ;
  42. pause 1
  43.  
  44.